namespace RMM.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update_area1 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Area", "ShortName", c => c.String());
            AddColumn("dbo.Area", "LevelType", c => c.Int(nullable: false));
            AddColumn("dbo.Area", "CityCode", c => c.Int(nullable: false));
            AddColumn("dbo.Area", "ZipCode", c => c.Int(nullable: false));
            AddColumn("dbo.Area", "lng", c => c.Double(nullable: false));
            AddColumn("dbo.Area", "lat", c => c.Double(nullable: false));
            AddColumn("dbo.Area", "PinYin", c => c.String());
            AddColumn("dbo.Area", "Status", c => c.Int(nullable: false));
            DropColumn("dbo.Area", "CodeID");
            DropColumn("dbo.Area", "AreaStatus");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Area", "AreaStatus", c => c.Int(nullable: false));
            AddColumn("dbo.Area", "CodeID", c => c.Int(nullable: false));
            DropColumn("dbo.Area", "Status");
            DropColumn("dbo.Area", "PinYin");
            DropColumn("dbo.Area", "lat");
            DropColumn("dbo.Area", "lng");
            DropColumn("dbo.Area", "ZipCode");
            DropColumn("dbo.Area", "CityCode");
            DropColumn("dbo.Area", "LevelType");
            DropColumn("dbo.Area", "ShortName");
        }
    }
}
